<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>04-float-练习01</title>
    <style>
        .container {
            width: 600px;
            height: 300px;
            border: 1px solid #000;
        }

        /*.box1, .box2, .box3 {
            float: left;
        }

        .box1 {
            width: 400px;
            height: 300px;
            background-color: #f00;
            margin-right: 10px;
        }

        .box2, .box3 {
            width: 190px;
            height: 145px;
        }

        .box2 {
            background-color: #ff0;
            margin-bottom: 10px;
        }

        .box3 {
            background-color: #f0f;
        }*/

        .box1 {
            width: 400px;
            height: 300px;
            background-color: #f00;
            float: left;
        }

        .box2, .box3 {
            width: 190px;
            height: 145px;
            float: right;
        }

        .box2 {
            background-color: #ff0;
            margin-bottom: 10px;
        }

        .box3 {
            background-color: #f0f;
        }
    </style>
</head>
<body>

<div class="container">
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
</div>

</body>
</html>